package com.yigerende.service.impl;

import com.yigerende.dao.UserDao;
import com.yigerende.pojo.TUser;
import com.yigerende.service.UserService;;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<TUser> findAll(Map<String, Integer> map) {
        return userDao.findAll(map);
    }

    @Override
    public int count() {
        return userDao.count();
    }

    @Override
    public int save(TUser tUser) {
        return userDao.save(tUser);
    }

    @Override
    public int deleteById(Integer id) {
        return userDao.deleteById(id);
    }
}
